<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>南开大学软件工程课程后台管理系统</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">

		<link rel="stylesheet" type="text/css" href="./css/style.css">
		<link rel="stylesheet" type="text/css" href="./css/table.css">
<s:if test="#session.admin==null">
	<script>
		self.top.location.href = './login.jsp';
	</script>
</s:if>

	</head>

	<body>
		<div class="all">
			<div class="main">
				<h3>
					课件信息
				</h3>

				<table class="table_con" border="0">
					<tr class="row-top">
						<td width="200px">
							文件
						</td>
						<td>
							删除
						</td>
					</tr>
					<s:iterator var="res" value="#ress" status="status">
						<tr
							class="<s:if test="#status.even">row-even</s:if><s:else>row-odd</s:else>">
							<td>
								<a href='<s:property value="url" />'><s:property
										value="name" /> </a>
							</td>
							<td style="text-align: center;">
								<s:a action="upload" method="deleteResById">
									<s:param name="id">${res.id}</s:param>
   					<img alt="删除" src="./images/delete.png" width="20px" height="20px"></img>
   				</s:a>
							</td>
						</tr>
					</s:iterator>
				</table>
			</div>
		</div>
	</body>
</html>
